# -*- coding:utf-8 -*-
# @FileName  :per_workday.py
# @Time      :2020/12/9 20:37
# @Author    :Zhoujirong
# @Desc      :
import datetime
from common.http_request import Request
from biz.support.urls import ServerUrl

class PerWorkDayRequest:
    @classmethod
    def get_month(cls,year,month,cookie):
        data = {
            'year':year,
            'month':month
        }
        req = Request(ServerUrl.per_workday_url,data=data,headers=cookie)
        return req.post_list()

    @classmethod
    def save_day(cls,date,isWorkDay,cookie):
        data = [{"ymd": date, "isWorkDay": isWorkDay}]
        req = Request(ServerUrl.per_saveday_url,json=data,headers=cookie)
        return req.post()





if __name__ == "__main__":
    pass